Packagesora.graybox.synth
Classpublic class SamplerPreset
InheritanceSamplerPreset Inheritance Object

SamplerPresetクラスは各シンセサイザークラス用のサンプラー音色プリセットです.

See also

sora.graybox.synth.SynthesizerWT
sora.graybox.synth.SynthesizerPCM
sora.graybox.synth.SynthesizerFM2


Public Properties
 PropertyDefined By
  ar : int = 127
音量エンベロープのアタックレート.
SamplerPreset
  dr : int = 0
音量エンベロープのディケイレート.
SamplerPreset
  octv : int = 8
音色の音程をオクターブ単位で調整.
SamplerPreset
  pan : int = 64
音色の定位.
SamplerPreset
  rr : int = 120
音量エンベロープのリリースレート.
SamplerPreset
  sl : int = 127
音量エンベロープのサステインレベル.
SamplerPreset
  smplNum : int = 0
サンプルデータナンバー.
SamplerPreset
  tl : int = 0
音量エンベロープのトータルレベル.
SamplerPreset
  toneName : String = default preset
プリセット名.
SamplerPreset
  tune : int = 8192
音色の音程を微調整.
SamplerPreset
Public Methods
 MethodDefined By
  
SamplerPresetオブジェクトを構築します.
SamplerPreset
  
copy(preset:SamplerPreset):void
音色パラメーターをコピーします.
SamplerPreset
  
reset():void
音色パラメーターをリセットします.
SamplerPreset
Property Detail
arproperty
public var ar:int = 127

音量エンベロープのアタックレート.

Attack Rate [0 ~ 127]
  0 -> AttackTime 256.0Sec / 1
  8 -> AttackTime 256.0Sec / 2
 16 -> AttackTime 256.0Sec / 4
 24 -> AttackTime 256.0Sec / 8
 32 -> AttackTime 256.0Sec / 16
128 -> AttackTime 256.0Sec / 65536

drproperty 
public var dr:int = 0

音量エンベロープのディケイレート.

Decay Rate [0 ~ 127]
  0 -> AttackTime 256.0Sec / 1
  8 -> AttackTime 256.0Sec / 2
 16 -> AttackTime 256.0Sec / 4
 24 -> AttackTime 256.0Sec / 8
 32 -> AttackTime 256.0Sec / 16
128 -> AttackTime 256.0Sec / 65536

octvproperty 
public var octv:int = 8

音色の音程をオクターブ単位で調整.

Tune (Octave)[0(-8 octave) ~ 8(+-0) ~ 15(+7 octave)]

panproperty 
public var pan:int = 64

音色の定位.

Panpot [ 0(L) ~ 64(center) ~ 127(R) ]

rrproperty 
public var rr:int = 120

音量エンベロープのリリースレート.

Release Rate [0 ~ 127]
  0 -> AttackTime 256.0Sec / 1
  8 -> AttackTime 256.0Sec / 2
 16 -> AttackTime 256.0Sec / 4
 24 -> AttackTime 256.0Sec / 8
 32 -> AttackTime 256.0Sec / 16
128 -> AttackTime 256.0Sec / 65536

slproperty 
public var sl:int = 127

音量エンベロープのサステインレベル.

Sustain Level [0 ~ 127]
  0 ->   0dB
  4 ->  -3dB
  8 ->  -6dB
 16 -> -12dB
127 -> -96dB

smplNumproperty 
public var smplNum:int = 0

サンプルデータナンバー.

SampleData Index Nuber [0 ~ 127]

tlproperty 
public var tl:int = 0

音量エンベロープのトータルレベル.

Total Level [0 ~ 127]
  0 ->   0dB
  4 ->  -3dB
  8 ->  -6dB
 16 -> -12dB
127 -> -96dB

toneNameproperty 
public var toneName:String = default preset

プリセット名.

各シンセサイザークラスからは固定長16バイトのAscii文字列として処理されます。

tuneproperty 
public var tune:int = 8192

音色の音程を微調整.

Tune [0(-1 octave) ~ 8192(+-0) ~ 16383(+1 octave)]

Constructor Detail
SamplerPreset()Constructor
public function SamplerPreset()

SamplerPresetオブジェクトを構築します.

Method Detail
copy()method
public function copy(preset:SamplerPreset):void

音色パラメーターをコピーします.

Parameters

preset:SamplerPreset — コピー元プリセット

reset()method 
public function reset():void

音色パラメーターをリセットします.